<div class="input_form">

<?php
	$attribute = array('name' => 'myform');
	$js = 'onChange="adding()" style="width:100px;"';
	echo form_open('dpt/nilaidp3/process_add', $attribute);
	
	$data = array (
		'nip_atasan'=>$content->nip,
		'jabatan'=> $pegawai->grup_now,
		'pendidikan'=>$pegawai->pendidikan_now,
		'nip'=>$pegawai->nip,	
		'periode_dp3'=>$record->periode_dp3,
	);

	for($i=0;$i<=12;$i++){
		$key = 'ket'.($i+1);
		$data[$key] = $ket[$i]->id;
	}
	echo form_hidden($data);
?>
<div align="center">
	<H5>Daftar Penilaian Pelaksanaan Pekerjaan (DP3)</H5>
	<br>
	<H5> Periode Tahun : <?php echo $record->periode_dp3?></H5>
	<br><br>
	<H4>DAFTAR PENILAIAN PELAKSANAAN PEKERJAAN (DP3)</H4>
</div>
<div align="center">
<TABLE class="table">
<TR>
	<TD width="200">Nama </TD>
	<TD width="10"> : </TD>
	<TD width="200"> 
	<?php
		echo $pegawai->nama;	
	?> 
	</TD>
	<TD width="200"> No.Induk </TD>
	<TD width="10"> : </TD>
	<TD width="200">
	<?php
		echo $pegawai->nip;	
	?>
	</TD>
</TR>
<TR>
	<TD width="200">Golongan </TD>
	<TD width="10"> : </TD>
	<TD width="200"> <?php
		echo $pegawai->grup_now;	
	?>  </TD>
	<TD width="200"> Jabatan </TD>
	<TD width="10"> : </TD>
	<TD width="200"> <?PHP echo $this->session->userdata('role_desc') ?> </TD>
</TR>
<tr>
	<td>Atasan</td>
	<TD width="10"> : </TD>
	<TD colspan="4" align="left"> 
	<?php
		echo $content->nip;	
	?> </TD>
</tr>
</TABLE>
</div>
<Script language="JavaScript">
	function adding()
    {
		var value0 = document.myform.opt0.value;
        var value1 = document.myform.opt1.value;
        var value2 = document.myform.opt2.value;
        var value3 = document.myform.opt3.value;
        var value4 = document.myform.opt4.value;
        var value5 = document.myform.opt5.value;
        var value6 = document.myform.opt6.value;
        var value7 = document.myform.opt7.value;
        var value8 = document.myform.opt8.value;
        var value9 = document.myform.opt9.value;
        var value10 = document.myform.opt10.value;
        var value11 = document.myform.opt11.value;
        var value12 = document.myform.opt12.value;
        document.myform.jumlah.value = parseInt(value0) + parseInt(value1) + 
					parseInt(value2) + parseInt(value3) + 
					parseInt(value4) + parseInt(value5) + 
					parseInt(value6) + parseInt(value7) + 
					parseInt(value8) + parseInt(value9) + 
					parseInt(value10) + parseInt(value11) + 
					parseInt(value12);
    }
</Script>
<TABLE class="table" style="width:auto">
<TR>
	<TD ROWSPAN =3 WIDTH=300 class="th">NORMA DAN UNSUR-UNSURNYA</TD>
	<TD ROWSPAN =3 WIDTH=200 class="th">NILAI UNSUR</TD>
	<TD COLSPAN =3 WIDTH=150 class="th">BATAS NILAI</TD>
</TR>
<TR>
	<TD class="th">MINIMUM</TD>
	<TD COLSPAN =2 class="th">MAKSIMUM</TD>
</TR>
<TR>
	<TD class="th">*</TD>
	<TD class="th">**</TD>
	<TD class="th">***</TD>
</TR>
<TR>
	<TD>I.KECAKAPAN</TD>
	<TD></TD>
	<TD></TD>
	<TD></TD>
	<TD></TD>
</TR>
<TR>
	<TD>&nbsp;&nbsp;&nbsp;1.<?php echo $ket[0]->keterangan?></TD>
	<TD><?php
	$arr_temp = Array();
	for ($i = $ket[0]->min; $i <= $ket[0]->max_bawahan; $i++)
	{
		array_push($arr_temp, $i);
	}
	$arr = array_combine($arr_temp, $arr_temp);
		echo form_dropdown('opt0', $arr, $ket[0]->min, $js);?></TD>
	<TD><?php echo $ket[0]->min?></TD>
	<TD><?php echo $ket[0]->max?></TD>
	<TD><?php echo $ket[0]->max_bawahan?></TD>
</TR>
<TR>
	<TD>&nbsp;&nbsp;&nbsp;2.<?php echo $ket[1]->keterangan?></TD>
	<TD> <?php
	$arr_temp = Array();
	for ($i = $ket[1]->min; $i <= $ket[1]->max_bawahan; $i++)
	{
		array_push($arr_temp, $i);
	}
	$arr = array_combine($arr_temp, $arr_temp);

		echo form_dropdown('opt1', $arr, $ket[1]->min, $js);?></TD>
	<TD><?php echo $ket[1]->min?></TD>
	<TD><?php echo $ket[1]->max?></TD>
	<TD><?php echo $ket[1]->max_bawahan?></TD>
</TR>
<TR>
	<TD>&nbsp;&nbsp;&nbsp;3.<?php echo $ket[2]->keterangan?></TD>
	<TD> <?php
	$arr_temp = Array();
	for ($i = $ket[2]->min; $i <= $ket[2]->max_bawahan; $i++)
	{
		array_push($arr_temp, $i);
	}
	$arr = array_combine($arr_temp, $arr_temp);

		echo form_dropdown('opt2', $arr, $ket[2]->min, $js);?></TD>
	<TD><?php echo $ket[2]->min?></TD>
	<TD><?php echo $ket[2]->max?></TD>
	<TD><?php echo $ket[2]->max_bawahan?></TD>
</TR>
<TR>
	<TD>&nbsp;&nbsp;&nbsp;4.<?php echo $ket[3]->keterangan?></TD>
	<TD> <?php
	$arr_temp = Array();
	for ($i = $ket[3]->min; $i <= $ket[3]->max_bawahan; $i++)
	{
		array_push($arr_temp, $i);
	}
	$arr = array_combine($arr_temp, $arr_temp);

		echo form_dropdown('opt3', $arr, $ket[3]->min, $js);?>
	</TD>
	<TD><?php echo $ket[3]->min?></TD>
	<TD><?php echo $ket[3]->max?></TD>
	<TD><?php echo $ket[3]->max_bawahan?></TD>
</TR>
<TR>
	<TD>&nbsp;&nbsp;&nbsp;5.<?php echo $ket[4]->keterangan?></TD>
	<TD><?php
	$arr_temp = Array(0);
	for ($i = $ket[4]->min; $i <= $ket[4]->max; $i++)
	{
		array_push($arr_temp, $i);
	}
	$arr = array_combine($arr_temp, $arr_temp);

		echo form_dropdown('opt4', $arr, 0, $js);?></TD>
	<TD><?php echo $ket[4]->min?></TD>
	<TD><?php echo $ket[4]->max?></TD>
	<TD><?php echo $ket[4]->max_bawahan?></TD>
</TR>

<TR>
	<TD>II.WATAK DAN TINGKAH LAKU</TD>
	<TD></TD>
	<TD></TD>
	<TD></TD>
	<TD></TD>
</TR>
<TR>
	<TD>&nbsp;&nbsp;&nbsp;1.<?php echo $ket[5]->keterangan?></TD>
	<TD><?php
	$arr_temp = Array();
	for ($i = $ket[5]->min; $i <= $ket[5]->max_bawahan; $i++)
	{
		array_push($arr_temp, $i);
	}
	$arr = array_combine($arr_temp, $arr_temp);

		echo form_dropdown('opt5', $arr, $ket[5]->min, $js);?></TD>
	<TD><?php echo $ket[5]->min?></TD>
	<TD><?php echo $ket[5]->max?></TD>
	<TD><?php echo $ket[5]->max_bawahan?></TD>
</TR>
<TR>
	<TD>&nbsp;&nbsp;&nbsp;2.<?php echo $ket[6]->keterangan?></TD>
	<TD><?php
	$arr_temp = Array();
	for ($i = $ket[6]->min; $i <= $ket[6]->max_bawahan; $i++)
	{
		array_push($arr_temp, $i);
	}
	$arr = array_combine($arr_temp, $arr_temp);

		echo form_dropdown('opt6', $arr, $ket[6]->min, $js);?></TD>
	<TD><?php echo $ket[6]->min?></TD>
	<TD><?php echo $ket[6]->max?></TD>
	<TD><?php echo $ket[6]->max_bawahan?></TD>
</TR>
<TR>
	<TD>&nbsp;&nbsp;&nbsp;3.<?php echo $ket[7]->keterangan?></TD>
	<TD><?php
	$arr_temp = Array();
	for ($i = $ket[7]->min; $i <= $ket[7]->max_bawahan; $i++)
	{
		array_push($arr_temp, $i);
	}
	$arr = array_combine($arr_temp, $arr_temp);

		echo form_dropdown('opt7', $arr, $ket[7]->min, $js);?></TD>
	<TD><?php echo $ket[7]->min?></TD>
	<TD><?php echo $ket[7]->max?></TD>
	<TD><?php echo $ket[7]->max_bawahan?></TD>
</TR>
<TR>
	<TD>&nbsp;&nbsp;&nbsp;4.<?php echo $ket[8]->keterangan?></TD>
	<TD><?php
	$arr_temp = Array();
	for ($i = $ket[8]->min; $i <= $ket[8]->max_bawahan; $i++)
	{
		array_push($arr_temp, $i);
	}
	$arr = array_combine($arr_temp, $arr_temp);

		echo form_dropdown('opt8', $arr, $ket[8]->min, $js);?></TD>
	<TD><?php echo $ket[8]->min?></TD>
	<TD><?php echo $ket[8]->max?></TD>
	<TD><?php echo $ket[8]->max_bawahan?></TD>
</TR>
<TR>
	<TD>&nbsp;&nbsp;&nbsp;5.<?php echo $ket[9]->keterangan?></TD>
	<TD><?php
	$arr_temp = Array();
	for ($i = $ket[9]->min; $i <= $ket[9]->max_bawahan; $i++)
	{
		array_push($arr_temp, $i);
	}
	$arr = array_combine($arr_temp, $arr_temp);

		echo form_dropdown('opt9', $arr, $ket[9]->min, $js);?></TD>
	<TD><?php echo $ket[9]->min?></TD>
	<TD><?php echo $ket[9]->max?></TD>
	<TD><?php echo $ket[9]->max_bawahan?></TD>
</TR>
<TR>
	<TD>&nbsp;&nbsp;&nbsp;6.<?php echo $ket[10]->keterangan?></TD>
	<TD><?php
	$arr_temp = Array();
	for ($i = $ket[10]->min; $i <= $ket[10]->max_bawahan; $i++)
	{
		array_push($arr_temp, $i);
	}
	$arr = array_combine($arr_temp, $arr_temp);

		echo form_dropdown('opt10', $arr, $ket[10]->min, $js);?></TD>
	<TD><?php echo $ket[10]->min?></TD>
	<TD><?php echo $ket[10]->max?></TD>
	<TD><?php echo $ket[10]->max_bawahan?></TD>
</TR>
<TR>
	<TD>II.LOYALITAS</TD>
	<TD></TD>
	<TD></TD>
	<TD></TD>
	<TD></TD>
</TR>
<TR>
	<TD>&nbsp;&nbsp;&nbsp;1.<?php echo $ket[11]->keterangan?></TD>
	<TD><?php
	$arr_temp = Array();
	for ($i = $ket[11]->min; $i <= $ket[11]->max_bawahan; $i++)
	{
		array_push($arr_temp, $i);
	}
	$arr = array_combine($arr_temp, $arr_temp);

		echo form_dropdown('opt11', $arr, $ket[11]->min, $js);?></TD>
	<TD><?php echo $ket[11]->min?></TD>
	<TD><?php echo $ket[11]->max?></TD>
	<TD><?php echo $ket[11]->max_bawahan?></TD>
</TR>
<TR>
	<TD>&nbsp;&nbsp;&nbsp;2.<?php echo $ket[12]->keterangan?></TD>
	<TD><?php
	$arr_temp = Array();
	for ($i = $ket[12]->min; $i <= $ket[12]->max_bawahan; $i++)
	{
		array_push($arr_temp, $i);
	}
	$arr = array_combine($arr_temp, $arr_temp);

		echo form_dropdown('opt12', $arr, $ket[12]->min, $js);?></TD>
	<TD><?php echo $ket[12]->min?></TD>
	<TD><?php echo $ket[12]->max?></TD>
	<TD><?php echo $ket[12]->max_bawahan?></TD>
</TR>
<TR>
	<TD>JUMLAH</TD>
	<TD><?php
		$tempsementara = 0;
		$i = 0;
		foreach ($ket as $sementara)
		{
			if ($i == 4)
				$tempsementara = $tempsementara + 0;
			else
				$tempsementara = $tempsementara + $sementara->min;

			$i++;
		}
		$jumlah = array('name' => 'jumlah', 'value' => $tempsementara, 'readonly' => true);
		echo form_input($jumlah)?></TD>
	<TD></TD>
	<TD></TD>
	<TD></TD>
</TR>

<TR>
	<TD colspan=5 align="center"><input type="submit" name="__submit_save" value="Submit"></TD>
	
</TR>
</TABLE>

<div align="left">
<H6>Keterangan : <BR>
(*)	Penilaian Minimum (Terendah)<BR> 
(**):	Penilaian Maksimum (Tertinggi) <BR>
(***): Penilaian Maksimum untuk Semua pegawai, kecuali Butir I.5 khusus untuk semua Pejabat yang  memiliki bawahan </H6>

</div>
<TABLE class="table">
<TR>
	<TD width="300" class="th"><H4>Hasil Penilaian</H4></TD>
	<TD width="100" class="th"><H4>Bilai Bobot (NB)</H4></TD>
	<TD width="200" class="th"><H4>Keterangan</H4></TD>
</TR>
<TR>
	<TD>1. Baik Sekali (BS)	: 90 < N = 100</TD>
	<TD>NB1 = 4.0</TD>
	<TD>Kenaikan Ruang :</TD>
</TR>
<TR>
	<TD></TD>
	<TD></TD>
	<TD>1) Non Dosen</TD>
</TR>
<TR>
	<TD>2. Baik (B)	: 80 < N = 90</TD>
	<TD>NB2 = 3.0</TD>
	<TD>1.1 Pendidikan SLTA dan D1/setara, NB = 18</TD>
</TR>
<TR>
	<TD></TD>
	<TD></TD>
	<TD>1.2 Pendidikan D2 dan D3/setara, ? NB = 15</TD>
</TR>
<TR>
	<TD>3. Cukup (C)	: 70 < N = 80</TD>
	<TD>NB3 = 2.0</TD>
	<TD>1.3 Pendidikan S1,S2 dan S3/setara, ? NB = 12</TD>
</TR>
<TR>
	<TD></TD>
	<TD></TD>
	<TD></TD>
</TR>
<TR>
	<TD>4. Sedang (S)	: 55 < N = 70</TD>
	<TD>NB4 = 1.0</TD>
	<TD>2) Dosen</TD>
</TR>
<TR>
	<TD></TD>
	<TD></TD>
	<TD>2.1 Pendidikan S1/setara, ? NB = 9</TD>
</TR>
<TR>
	<TD>5. Kurang (K)	: 0 < N = 55</TD>
	<TD>NB5 = 0.0</TD>
	<TD>2.2 Pendidikan S2, S3/setara, ? NB = 8</TD>
</TR>
</TABLE>

<div align="left">
<H6>Catatan :<BR> 
BS	= 5 % Gaji Pokok (GP)<BR>
B	= 3,75 % GP <BR>
C	= 2,5 % GP <BR>
S	= 1,25 % GP <BR>
K	= 0,0 % GP
</H6>
</div>
<?=form_close(); ?>
